home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
C
/
Applications
/
Python 1.3.3
/
Python 133 68K
/
Demo
/
README-Mac
< prev
Wrap
Text File
|
1996-05-20
|
4KB
|
85 lines
Notes on using the Demo code on the mac.
----------------------------------------
These notes were written by Jack on 17-Mar-96, using a version
slightly newer than Python 1.3.2.
First and foremost: this code has only been tested lightly on the Mac.
Most of it was initially written with Unix in mind. Some of the modules
here will not work as expected.
Some (but not all) modules will execute a test- or demo-routine if
run standalone (i.e. double-clicked or dragged to python on the mac).
However, to be able to actually *see* the output produced you will have
to press <option> when dragging (or immedeately after double-clicking),
otherwise Python will immedeately exit after successfully executing the
test-code.
Also, tests that need command-line arguments will not work with 1.3.2 or
earlier.
Here are some more notes, on a per-directory basis:
classes:
Dbm will not work, due to upper- and lowercase being similar for
the MacOS file system. It might work if you rename it.
cwilib:
These modules should work, but the example program "cwilib" stopped
working because the CWI library catalog has been redone and the program
cannot parse the new format menus.
dns:
These work. The test code doesn't work unless your python allows you
to specify command-line args. The classes themselves should work regardless.
embed:
This has not been tested on the mac.
mac:
These work, obviously:-)
md5test:
Works (but the confidence test needs the ability to specify command-line args).
pdist:
According to Guido these should work, but I didn't have enough time to find
out how...
rpc:
These don't work currently. The problem appears to be minor, time.time()
returns a value (on the mac) that is too large to represent in an integer.
Maybe someone can fix this. Running these tests, by the way, is a bit of
a black art:
- option-start the script
- Select "enter interactive mode upon script completion"
- Wait for the script to finish (doing nothing)
- import sys, set sys.argv to whatever you want
- test()
scripts:
A lot of these are unix-only, but some work on the Mac:
fact.py - works as expected
markov.py - works if you can specify command-line args.
morse.py - doesn't work currently, check out the version in Tools:bgen:snd.
pi.py - works
primes.py - works
update.py - sort-of works, but the input file syntax (with : as field
separator) is clumsy on the mac.
unbirthday.py - Works, option-start it and tell it to keep the output window
open on termination.
socket:
Since mactcp doesn't support IP multicast the radio suite (broadcast, radio,
mcast) don't work.
echosvr.py - works.
finger.py - works, specify "@host" as command line.
ftp.py - works (specify host at command line). See the ftp client in Lib for
a better implementation.
gopher.py - almost works: it calls os.popen() to pipe text files to "more".
This is easily fixed, and the rest appears to work.
telnet.py - does not work, since it uses posix.fork(). Fixed versions are
welcomed.
throughput.py - sort-of works, but crashes at the end
udpecho.py - works, needs command line args.
stdwin:
Apparently stdwin stopped working under MacPython at some point. If someone
cares: drop me a note and I will investigate.
tkinter:
Not fully tested yet. Matt's demos will not work on the mac, probably,
due to names longer than 32 chars. Some of Guido's scripts appear to work.
www:
These appear to use os.popen() to start a pager at various places. They
might be made to work with not too much difficulty, though.